<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/17 0017
  Time: 下午 4:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    
    String username=request.getParameter("username");
    String password=request.getParameter("password");
    if("admin".equals(username)&&"123456".equals(password)){
        out.write("登录成功！");
        response.sendRedirect("userList.jsp");
        session.setAttribute("islogin","true");
    }
    else {
        session.setAttribute("islogin","fals");
        response.sendRedirect("login.jsp");
    }
%><%

%>
<%--seeino空间定义变量能让所有页面访问--%>
</body>
</html>
